package com.woniu.owner.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.common.ResponseData;
import com.woniu.owner.entity.Door;
import com.woniu.owner.service.DoorService;
import com.woniu.owner.mapper.DoorMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author admin
* @description 针对表【door】的数据库操作Service实现
* @createDate 2025-01-09 11:23:42
*/
@Service
public class DoorServiceImpl extends ServiceImpl<DoorMapper, Door>
    implements DoorService{

    @Override
    public ResponseData<?> queryAllDoor(String communityId) {
        List<Door> doorList = lambdaQuery().eq(Door::getCommunityId, communityId).list();
        return new ResponseData<>().ok(doorList);
    }
}




